home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / CMMComponent.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  7.8 KB  |  190 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMMComponent.p
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.1
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1994-1997 by Apple Computer, Inc. All rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT CMMComponent;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CMMCOMPONENT__}
  28. {$SETC __CMMCOMPONENT__ := 1}
  29.  
  30. {$I+}
  31. {$SETC CMMComponentIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __QUICKDRAW__}
  38. {$I Quickdraw.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __COMPONENTS__}
  41. {$I Components.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __CMAPPLICATION__}
  44. {$I CMApplication.p}
  45. {$ENDC}
  46.  
  47.  
  48. {$PUSH}
  49. {$ALIGN MAC68K}
  50. {$LibExport+}
  51.  
  52.  
  53. CONST
  54.     CMMInterfaceVersion            = 1;
  55.  
  56. { Component function selectors }
  57. { Required }
  58.     kCMMInit                    = 0;
  59.     kNCMMInit                    = 6;
  60.     kCMMMatchColors                = 1;
  61.     kCMMCheckColors                = 2;
  62.  
  63. { Optional }
  64.     kCMMValidateProfile            = 8;
  65.     kCMMFlattenProfile            = 14;
  66.     kCMMUnflattenProfile        = 15;
  67.     kCMMMatchBitmap                = 9;
  68.     kCMMCheckBitmap                = 10;
  69.     kCMMMatchPixMap                = 3;
  70.     kCMMCheckPixMap                = 4;
  71.     kCMMConcatenateProfiles        = 5;
  72.     kCMMConcatInit                = 7;
  73.     kCMMNewLinkProfile            = 16;
  74.     kCMMGetPS2ColorSpace        = 11;
  75.     kCMMGetPS2ColorRenderingIntent = 12;
  76.     kCMMGetPS2ColorRendering    = 13;
  77.     kCMMGetPS2ColorRenderingVMSize = 17;
  78.     kCMMGetNamedColorInfo        = 70;
  79.     kCMMGetNamedColorValue        = 71;
  80.     kCMMGetIndNamedColorValue    = 72;
  81.     kCMMGetNamedColorIndex        = 73;
  82.     kCMMGetNamedColorName        = 74;
  83.  
  84.  
  85. FUNCTION NCMInit(CMSession: ComponentInstance; srcProfile: CMProfileRef; dstProfile: CMProfileRef): CMError;
  86.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  87.     INLINE $2F3C, $0008, $0006, $7000, $A82A;
  88.     {$ENDC}
  89. FUNCTION CMInit(CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
  90.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  91.     INLINE $2F3C, $0008, $0000, $7000, $A82A;
  92.     {$ENDC}
  93. FUNCTION CMMatchColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT): CMError;
  94.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  95.     INLINE $2F3C, $0008, $0001, $7000, $A82A;
  96.     {$ENDC}
  97. FUNCTION CMCheckColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT; VAR result: LONGINT): CMError;
  98.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  99.     INLINE $2F3C, $000C, $0002, $7000, $A82A;
  100.     {$ENDC}
  101.  
  102. { Optional functions }
  103. FUNCTION CMMValidateProfile(CMSession: ComponentInstance; prof: CMProfileRef; VAR valid: BOOLEAN): CMError;
  104.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  105.     INLINE $2F3C, $0008, $0008, $7000, $A82A;
  106.     {$ENDC}
  107. FUNCTION CMMFlattenProfile(CMSession: ComponentInstance; prof: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  108.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  109.     INLINE $2F3C, $0010, $000E, $7000, $A82A;
  110.     {$ENDC}
  111. FUNCTION CMMUnflattenProfile(CMSession: ComponentInstance; VAR resultFileSpec: FSSpec; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  112.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  113.     INLINE $2F3C, $000C, $000F, $7000, $A82A;
  114.     {$ENDC}
  115. FUNCTION CMMatchBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR matchedBitmap: CMBitmap): CMError;
  116.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  117.     INLINE $2F3C, $0010, $0009, $7000, $A82A;
  118.     {$ENDC}
  119. FUNCTION CMCheckBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitmap: CMBitmap): CMError;
  120.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  121.     INLINE $2F3C, $0010, $000A, $7000, $A82A;
  122.     {$ENDC}
  123. FUNCTION CMMatchPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr): CMError;
  124.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  125.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  126.     {$ENDC}
  127. FUNCTION CMCheckPixMap(CMSession: ComponentInstance; {CONST}VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; VAR myBitMap: BitMap; refCon: UNIV Ptr): CMError;
  128.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  129.     INLINE $2F3C, $0010, $0004, $7000, $A82A;
  130.     {$ENDC}
  131. FUNCTION CMConcatInit(CMSession: ComponentInstance; VAR profileSet: CMConcatProfileSet): CMError;
  132.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  133.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  134.     {$ENDC}
  135. FUNCTION CMNewLinkProfile(CMSession: ComponentInstance; VAR prof: CMProfileRef; {CONST}VAR targetLocation: CMProfileLocation; VAR profileSet: CMConcatProfileSet): CMError;
  136.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  137.     INLINE $2F3C, $000C, $0010, $7000, $A82A;
  138.     {$ENDC}
  139. FUNCTION CMMGetPS2ColorSpace(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  140.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  141.     INLINE $2F3C, $0010, $000B, $7000, $A82A;
  142.     {$ENDC}
  143. FUNCTION CMMGetPS2ColorRenderingIntent(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  144.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  145.     INLINE $2F3C, $0010, $000C, $7000, $A82A;
  146.     {$ENDC}
  147. FUNCTION CMMGetPS2ColorRendering(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  148.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  149.     INLINE $2F3C, $0014, $000D, $7000, $A82A;
  150.     {$ENDC}
  151. FUNCTION CMMGetPS2ColorRenderingVMSize(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; VAR vmSize: LONGINT): CMError;
  152.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  153.     INLINE $2F3C, $000C, $0011, $7000, $A82A;
  154.     {$ENDC}
  155. FUNCTION CMConcatenateProfiles(CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
  156.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  157.     INLINE $2F3C, $000C, $0005, $7000, $A82A;
  158.     {$ENDC}
  159. { Named Color functions }
  160. FUNCTION CMMGetNamedColorInfo(CMSession: ComponentInstance; srcProf: CMProfileRef; VAR deviceChannels: LONGINT; VAR deviceColorSpace: OSType; VAR PCSColorSpace: OSType; VAR count: LONGINT; prefix: StringPtr; suffix: StringPtr): CMError;
  161.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  162.     INLINE $2F3C, $001C, $0046, $7000, $A82A;
  163.     {$ENDC}
  164. FUNCTION CMMGetNamedColorValue(CMSession: ComponentInstance; prof: CMProfileRef; name: StringPtr; VAR deviceColor: CMColor; VAR PCSColor: CMColor): CMError;
  165.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  166.     INLINE $2F3C, $0010, $0047, $7000, $A82A;
  167.     {$ENDC}
  168. FUNCTION CMMGetIndNamedColorValue(CMSession: ComponentInstance; prof: CMProfileRef; index: LONGINT; VAR deviceColor: CMColor; VAR PCSColor: CMColor): CMError;
  169.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  170.     INLINE $2F3C, $0010, $0048, $7000, $A82A;
  171.     {$ENDC}
  172. FUNCTION CMMGetNamedColorIndex(CMSession: ComponentInstance; prof: CMProfileRef; name: StringPtr; VAR index: LONGINT): CMError;
  173.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  174.     INLINE $2F3C, $000C, $0049, $7000, $A82A;
  175.     {$ENDC}
  176. FUNCTION CMMGetNamedColorName(CMSession: ComponentInstance; prof: CMProfileRef; index: LONGINT; name: StringPtr): CMError;
  177.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  178.     INLINE $2F3C, $000C, $004A, $7000, $A82A;
  179.     {$ENDC}
  180. {$ALIGN RESET}
  181. {$POP}
  182.  
  183. {$SETC UsingIncludes := CMMComponentIncludes}
  184.  
  185. {$ENDC} {__CMMCOMPONENT__}
  186.  
  187. {$IFC NOT UsingIncludes}
  188.  END.
  189. {$ENDC}
  190.